
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Problem H
 * @Problem 11172 - Relational Operators
 * @author Cesar Augusto Meneses Guzman
 * @version 1.0
 * @since 20 de Agosot de 2013
 */
public class RelationalOperators {
    
    public static void main( String args[] ) {
        BufferedReader br = null;
        try {
            br = new BufferedReader(new InputStreamReader(System.in));
//            br = new BufferedReader(new FileReader(new File("inRelationalOperators.txt")));
            int t = Short.parseShort(br.readLine());
            while( t > 0 ) {
                String data[] = br.readLine().split("[ ]+");
                long a = Long.parseLong(data[0]);
                long b = Long.parseLong(data[1]);
                if (a < b) {
                    System.out.println("<");
                } else if (a > b) {
                    System.out.println(">");
                } else {
                    System.out.println("=");
                }
//                if (t - 1 > 0) {
//                    System.out.println();
//                }
                t--;
            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(RelationalOperators.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(RelationalOperators.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            try {
                br.close();
            } catch (IOException ex) {
                Logger.getLogger(RelationalOperators.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }
}
